using System;
using System.Reflection;

namespace AdvancedInspector
{
	public class TypeUtility
	{
		public static Type GetTypeByName(string name)
		{
			Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
			foreach (Assembly assembly in assemblies)
			{
				Type[] types = assembly.GetTypes();
				foreach (Type type in types)
				{
					if (type.Name == name)
					{
						return type;
					}
				}
			}
			return null;
		}
	}
}
